# 默认关闭打开的文件资源
with open('test.txt', 'r', encoding='utf-8') as f:
    for line in f:
        print(line, end='')
